package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.QueryGiftDto;
import com.huaxiafinance.management.model.ScoreGift;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ScoreGiftMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScoreGift record);

    int insertSelective(ScoreGift record);

    ScoreGift selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ScoreGift record);

    int updateByPrimaryKey(ScoreGift record);

    List<ScoreGift> queryScoreGifts(QueryGiftDto dto);

    int countScoreGift(QueryGiftDto dto);

    ScoreGift selectByCodeName(@Param("codeName") String codeName);

    ScoreGift selectById(@Param("id") Integer id,@Param("nowDate") Date nowDate);

}